package com.guan.ordering_sys.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Description
 * @Author 关远键
 * @Version v1.0.3
 * @Date 2021/6/27 22:16
 */
@Data
@ApiModel("角色添加参数")
public class PostParam {

    @ApiModelProperty(value = "角色名称", required = true)
    private String name;

    @ApiModelProperty(value = "角色状态：0不启用1启用", required = true)
    private Integer status;

    @ApiModelProperty(value = "创建时间", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;


}
